var rootUrl = "capi/V2/KMSCommand/kmsCommand/" 
var netTool
// var checkdata = require('../utils/dataCheek')
var page = {
	pageSize: 10,
	total: 0,
	currentPage: 1
}
  
function KMSCommand(_netTool) {
	netTool = _netTool 
	this.list = function(data, fn) {
		netTool.getAjaxUrlValue(rootUrl + 'list', {
			...data
		}, function(res) {
			typeof fn == 'function' && fn(res);
		})
	}
	 this.save = function(data, fn) {
	 	netTool.getAjaxUrlValue(rootUrl + 'save', {
	 		...data
	 	}, function(res) {
	 		typeof fn == 'function' && fn(res);
	 	})
	 }
 } 
module.exports = KMSCommand;
